// com.lesso.cyg.sunflower.infra.mapper.EmployeeDeviceRelMapper.java
package com.lesso.cyg.sunflower.infra.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.lesso.cyg.sunflower.model.EmployeeDeviceRel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 员工考勤设备关系Mapper接口
 */
public interface EmployeeDeviceRelMapper extends BaseMapper<EmployeeDeviceRel> {

    /**
     * 分页查询员工考勤设备关系
     */
    List<EmployeeDeviceRel> selectByPage(@Param("page") Integer page,
                                         @Param("size") Integer size,
                                         @Param("employeeId") Long employeeId,
                                         @Param("deviceCode") String deviceCode,
                                         @Param("authorizationStatus") Integer authorizationStatus);

    /**
     * 查询总数
     */
    Integer selectCount(@Param("employeeId") Long employeeId,
                        @Param("deviceCode") String deviceCode,
                        @Param("authorizationStatus") Integer authorizationStatus);
}